package cn.kgc.service.Impl;

import cn.kgc.mapper.AirMapper;
import cn.kgc.pojo.Air;
import cn.kgc.service.AirService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import cn.kgc.service.AirService;

import java.util.List;

@Service("airService")
public class AirServiceImpl implements AirService {

    @Autowired
    AirMapper airMapper;

    @Override
    public List<Air> airList(Integer type) {
        return airMapper.airList(type);
    }

    @Override
    public int insert(Air air) {
        return airMapper.insert(air);
    }

    @Override
    public Air airGetById(int id) {
        return airMapper.airGetById(id);
    }
}
